<template>
  <div class="nav-item">
    <!-- 就是一个超链接 a标签
    <router-link to="/">首页</router-link>
    <br>
    <router-link to="/video">视频</router-link>
    <br>
    <router-link to="/bilibili">B站的作业</router-link>
    <br>
    <router-link to="/day4">第四天讲解</router-link>
    <br>
    <router-link to="/day5">第五天讲解</router-link>
    <br> -->
    <router-link to="/day6">黑神话悟空</router-link>
    <!-- <br>
    <a href="/video">这个也是超链接</a>
    <div class="ball" @click="goHome">主页</div> -->
    <!-- 显示 -->
    <router-view></router-view>
  </div>
</template>

<script>
// 导包
// import video_item from '@/views/video_item.vue'
// import home_item from '@/views/home_item.vue'

export default {
  name: 'App',
  // 注册组件
  // components: {
  //   video_item,
  //   home_item
  // },
  data() {
    return {
      number: 1
    }
  },
  computed: {},
  methods: {
    //goHome
    goHome() {
      //页面跳转
      this.$router.push('/')
    }
  }
}
</script>

<style scoped>
/* 样式 */
.ball{
  width: 50px;
  height: 50px;
  position: fixed;
  right: 10px;
  bottom: 20px;
  border-radius: 50%;
  background-color: aquamarine;
  text-align: center;
  line-height: 50px;
  cursor: pointer;
}
</style>
